#!/bin/bash
sudo mkdir mnt
sudo mount gen_fs.img mnt
sudo touch mnt/B
sudo touch mnt/BO
sudo touch mnt/BOO
sudo touch mnt/BOOT
sudo touch mnt/BOOTB
sudo touch mnt/BOOTBI
sudo touch mnt/BOOTBIN
sudo dd if=/dev/random of=mnt/BOOTBIN bs=512 count=10 
sudo umount mnt
qemu-system-x86_64 -drive file=gen_fs.img,format=raw -m 2048 -monitor stdio
